From: Florian Müllner Date: Mon, 31 Aug 2020 18:54:37 +0000 (+0200) Subject: appDisplay: Add drop shadow to icons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~672^2^2~15 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4e195d789ab99d02a62feb2494ff7f4f2f1ce761;p=gnome-shell.git appDisplay: Add drop shadow to icons The shadow is barely visible on dark backgrounds, but it's not wrong to be consistent with Settings, Software and GNOME Classic. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3123 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c1fb1cb20..daaf74693 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1333,7 +1333,11 @@ var AppSearchProvider = class AppSearchProvider { metas.push({ id: app.get_id(), name: app.get_name(), - createIcon: size => app.create_icon_texture(size), + createIcon: size => { + const icon = app.create_icon_texture(size); + icon.add_style_class_name('icon-dropshadow'); + return icon; + }, }); } else { let name = this._systemActions.getName(id); @@ -2495,7 +2499,9 @@ var AppIcon = GObject.registerClass({ } _createIcon(iconSize) { - return this.app.create_icon_texture(iconSize); + const icon = this.app.create_icon_texture(iconSize); + icon.add_style_class_name('icon-dropshadow'); + return icon; } _removeMenuTimeout() {